package com.zcf.pojo;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

public class ClubUser extends Model<ClubUser>{
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	@TableField("clubName")
	private String clubName;
	@TableField("userid")
	private Integer userid;
	@TableField("createTime")
	private Date createTime;
	@TableField("integral")
	private Integer integral;//积分
	@TableField("state")
	private Integer state; // 1成员 3创建者
	@TableField("shrink")
	private Integer shrink;
	@TableField(exist = false)
	private Integer Integrals = 0;//增加金币
	@TableField(exist = false)
	private Integer IntegralS = 0;//减少金币
	@TableField("storage")
	private Integer storage;//存储金币
	@TableField("clubid")
	private Integer clubid;
	@TableField("sumloss")
	private Integer sumloss;//总损耗金币
	@TableField("cooperation")
	private Double cooperation;//合作比例
	@TableField("upuserid")
	private Integer upuserid;//合伙人id
	
	
	public Integer getUpuserid() {
		return upuserid;
	}
	public void setUpuserid(Integer upuserid) {
		this.upuserid = upuserid;
	}
	public Double getCooperation() {
		return cooperation;
	}
	public void setCooperation(Double cooperation) {
		this.cooperation = cooperation;
	}
	public Integer getSumloss() {
		return sumloss;
	}
	public void setSumloss(Integer sumloss) {
		this.sumloss = sumloss;
	}
	public Integer getClubid() {
		return clubid;
	}
	public void setClubid(Integer clubid) {
		this.clubid = clubid;
	}
	public Integer getStorage() {
		return storage;
	}
	public void setStorage(Integer storage) {
		this.storage = storage;
	}
	public Integer getIntegralS() {
		return IntegralS;
	}
	public void setIntegralS(Integer integralS) {
		IntegralS = integralS;
	}
	public Integer getIntegrals() {
		return Integrals;
	}
	public void setIntegrals(Integer integrals) {
		Integrals = integrals;
	}
	public Integer getShrink() {
		return shrink;
	}
	public void setShrink(Integer shrink) {
		this.shrink = shrink;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public Integer getIntegral() {
		return integral;
	}
	public void setIntegral(Integer integral) {
		this.integral = integral;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getClubName() {
		return clubName;
	}
	public void setClubName(String clubName) {
		this.clubName = clubName;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Override
	protected Serializable pkVal() {
		
		return this.id;
	}
	
	
	
	
}
